home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-03.Z / 94-03 / text0127.txt < prev    next >
Encoding:
Text File  |  1994-03-30  |  6.4 KB  |  162 lines

  1. I haven't come across a winsock based TAR. GNU TAR for DOS is command line 
  2. based and it does not have socket support so you cannot directly mount a 
  3. device on a UNIX machine. You can use redirection and rcp or rsh to move the 
  4. TAR file onto anopther machine. However if you are limited in disk space on 
  5. your DOS machine this won't do you much good since DOS redirection uses a 
  6. temporary local file.
  7.  
  8. FTP's PCTCP comes with a version of TAR that has enough extra code embedded 
  9. into it that it can mount a remote device and create the TAR file directly 
  10. onto it.
  11.  
  12. Luigi Rizzo has done a version of GNU TAR with the WATTCP support embedded 
  13. into it to provide the same functionality. The source code is available for 
  14. this. Use Archie, at the moment I don't recall where it is located. 
  15. Maybe someone with enough interest and time would like to port it Windows 
  16. and winsock. Here is a copy of the readme file included in the distribution. 
  17.  
  18.     --- README File for Remote TAR ---
  19. (updated as of 09 september 1993)
  20.  
  21. This program has been put together by:
  22.  
  23.     Luigi Rizzo
  24.     Dip. di Ingegneria dell'Informazione, Univ. di Pisa
  25.     via Diotisalvi 2, 56126 PISA (ITALY)
  26.     email: luigi@iet.unipi.it
  27.     tel: +39-50-568533    fax: +39-50-568511
  28.  
  29.  
  30. This is a modified version of GNU TAR, running on MSDOS and able to
  31. access the Unix file system via "rexec". The network support is a
  32. modified version of WATTCP libraries (originally created by Erick
  33. Engelke, Univ. of Waterloo, CA, ee@development.uwaterloo.ca) which
  34. compiles under MS-C 6.00 and MASM 5.0.
  35.  
  36. I have included the full sources for TAR, plus my version of the WATTCP
  37. library and include files. The modified WATTCP sources will be
  38. available shortly.
  39.  
  40. You can use this program as a normal tar, with standard options. If you
  41. want to read/write to a Unix file (or device), you can specify the
  42. target file (the one after the -f option) as follows:
  43.  
  44.     host:user:password:target_file
  45.     
  46. (the password can be omitted, in which case it will be requested at run
  47. time; an empty password must be specified as a minus sign, '-').
  48.  
  49. The remote host is accessed via rexec to execute
  50.  
  51.     "cat - >target_file"    (when writing)
  52.  
  53. or
  54.  
  55.     "cat target_file"    (when reading)
  56.     
  57. so that tar can access the actual archive. The "-z" option will execute
  58. compress or zcat on the remote system, so that you end up with a
  59. compressed archive. As an additional option, you can specify the 
  60. "-r" flag on the command line so that the target_file is interpreted as
  61. the command to be executed on the remote system. Thus, the following are
  62. equivalent:
  63.  
  64.     tar zcvf host:user:password:file.tar    .
  65.  
  66.     tar rcvf "host:user:password: compress - > file.tar.Z" .
  67.  
  68. If any of the host-user-password fields are missing, they will be
  69. requested interactively. I have included a couple of utilities, RPUT.BAT
  70. and RGET.BAT, which can be used to transfer files or even directory
  71. subtrees between Unix and DOS. Have a look at them to figure out how
  72. they work.
  73.  
  74. IMPORTANT notice (for non US users)
  75.  
  76. When reading/writing file times, a call to ctime() is made. In absence
  77. of a TZ environment variable, the Microsoft library assumes that our
  78. timezone is Eastern Standard Time (which is in the US, of course). 
  79. So...  have in your AUTOEXEC.BAT a line such as
  80.  
  81.     set TZ=-1:00
  82.  
  83. or something similar, to set the correct timezone.
  84.  
  85.  
  86. The tar executing on the DOS machine will read from / write to the
  87. output/input of the command running on Unix.
  88.  
  89. The whole thing might still have bugs, and it has not been thoroughly
  90. tested (take it as an 'alpha' version). If you find a bug or a fix,
  91. please send me a note.
  92.  
  93. DISCLAIMER about possible bugs
  94. ==============================
  95.  
  96. I wrote this program by merging an old version of GNU TAR, some
  97. routines to do directory searches (msd_dir), Erick Engelke's version of
  98. rexec and my version of WATTCP libraries. Thus I have not a complete
  99. knowledge of all of the sources.  Nevertheless, I've done some backups
  100. and the program appears to work reasonably well.  Among possible
  101. problems are the following:
  102.  
  103. - Compilation seems to work. But I have not checked very carefully
  104.   the msd_dir routines in large model.
  105.  
  106. - I'm not quite sure on how wildcard in filenames are handled (but
  107.   useful things like "tar tvf file.tar ." do work).
  108.  
  109. - There might be problems with stack overflows with deep directory trees.
  110. ================================
  111.  
  112.  
  113. (Here follows the original README coming with the GNU TAR I used)
  114. ===========================================================
  115.  
  116. This is a public domain tar(1) replacement.  It implements the 'c',
  117. 'x', and 't' commands of Unix tar, and many of the options.  It creates
  118. P1003 "Unix Standard" [draft 6] tapes by default, and can read and
  119. write both old and new formats.  It can decompress tar archives when
  120. reading them from disk files (using the 'z' option), but cannot do so
  121. when writing, or when reading from a tape drive.  Its verbose output
  122. looks more like "ls -l" than the Unix tar, and even lines up the
  123. columns.  It is a little better at reading damaged tapes than Unix tar.
  124.  
  125. It is designed to be a lot more efficient than the standard Unix tar;
  126. it does as little bcopy-ing as possible, and does file I/O in large
  127. blocks.  On the other hand, it has not been timed or performance-tuned;
  128. it's just *designed* to be faster.
  129.  
  130. On the Sun, the tar archives it creates under the 'old' option are
  131. byte-for-byte the same as those created by /bin/tar, except the trash
  132. at the end of each file and at the end of the archive.
  133.  
  134. It was written and initially debugged on a Sun Workstation running
  135. 4.2BSD.  It has been run on Xenix, Unisoft, Vax 4.2BSD, V7, and USG
  136. systems.  I'm interested in finding people who will port it to other
  137. types of (Unix and non-Unix) systems, use it, and send back the
  138. changes; and people who will add the obscure tar options that they
  139. happen to use and I don't.  In particular, VMS, MSDOS, Mac, Atari and
  140. Amiga versions would be handy.
  141.  
  142. It still has a number of loose ends, marked by "FIXME" comments in the
  143. source.  For example, it does not chown() extracted files.  Fixes to
  144. these things are also welcome.
  145.  
  146. I am the author of all the code in this program.  I hereby place it in
  147. the public domain.  If you modify it, or port it to another system,
  148. please send me back a copy, so I can keep a master source.
  149.  
  150.     John Gilmore
  151.     Nebula Consultants
  152.     1504 Golden Gate Ave.
  153.     San Francisco, California, USA  94115
  154.     +1 415 931 4667        voice
  155.     hoptoad!gnu        data
  156.     jgilmore@lll-crg.arpa    data
  157. Hoptoad talks to sun, ptsfa, well, lll-crg, ihnp4, cbosgd, ucsfcgl, pyramid.
  158.  
  159. @(#)README 1.5    86/10/29
  160.  
  161.  
  162.